const formatTime = date => {
  const year = date.getFullYear()
  const month = date.getMonth() + 1
  const day = date.getDate()
  const hour = date.getHours()
  const minute = date.getMinutes()
  const second = date.getSeconds()

  return `${[year, month, day].map(formatNumber).join('/')} ${[hour, minute, second].map(formatNumber).join(':')}`
}

const formatNumber = n => {
  n = n.toString()
  return n[1] ? n : `0${n}`
}
const baseUrl="https://xxt.lovegcu.xyz"
const javaUrl="https://www.lovegcu.xyz"
const qiangguoUrl="https://qwer.lovegcu.xyz"
const localUrl="https://wechat.lovegcu.xyz"
// const userInfo =JSON.stringify(wx.getStorageSync('login'))
var userInfo ={
  fid:'',
  pid:'',
  refer:'',
  _blank:'',
  t:'',
  vc3:'',
  _uid:'',
  _d:'',
  uf:'',
  JSESSIONID:'',
  lv:'',
  UID:'',
  vc:'',
  vc2:'',
  xxtenc:'',
  DSSTASH_LOG:'',
  route:'',
  name:'',
}
module.exports = {
  formatTime,
  baseUrl,
  userInfo,
  javaUrl,
  qiangguoUrl,
  localUrl,
}
